import React from "react"
import { Route, Routes, Navigate } from "react-router-dom"
import Login from "./Login"
import Register from "./Register"
function Admin() {
    return (
        <div>
            <h1>admin组件</h1>
            <Routes>
                <Route path="login" element={<Login />}></Route>
                <Route path="register" element={<Register />}></Route>
                <Route path="*" element={<Navigate to="login" />} />
            </Routes>
        </div>
    )
}

export default Admin
